import {isMainThread, workerData} from "worker_threads";
import {Task} from "./Task";
import {PuppeteerTask} from "./PuppeteerTask";
if (!isMainThread) {
// let task = Task.createTask('','http://wx.10086.cn/website/uniPage/main/personCenter',{
//   maxDepth:1
// })
  let task = new PuppeteerTask(workerData);
  task.run()
}